package com.joysuch.wwyt.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.util.Date;

import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 目前是app在使用，web通知使用的是CommonIndexNotify
 * </p>
 *
 * @author heqifeng
 * @since 2022-01-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_common_business_notice")
@ApiModel(value="CommonBusinessNotice对象", description="")
public class CommonBusinessNotice extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "被通知人")
    private Long noticeUser;

    @ApiModelProperty(value = "通知标题")
    private String noticeTitle;

    @ApiModelProperty(value = "通知内容")
    private String noticeContent;

    private String businessType;

    @ApiModelProperty(value = "是否已读，1：已读，0：未读")
    private String readed;

    @ApiModelProperty(value = "通知时间")
    private Date sendTime;

    @ApiModelProperty(value = "关联实体id")
    private Long refId;
}
